package cn.edu.cqupt.service;

import java.util.HashMap;
import java.util.List;

import cn.edu.cqupt.core.PageParam;
import cn.edu.cqupt.model.Activity;
import cn.edu.cqupt.model.Admirerecord;
import cn.edu.cqupt.model.CUser;
import cn.edu.cqupt.model.Classachievement;
import cn.edu.cqupt.model.Classnews;
import cn.edu.cqupt.model.Comments;
import cn.edu.cqupt.model.HeartwordPage;
import cn.edu.cqupt.model.Heartwords;
import cn.edu.cqupt.model.Member;
import cn.edu.cqupt.model.Personachievement;

public interface HomeService {

	HashMap<String, Object> selectmemberByuserid(String username, String makeMD5) throws Exception;

	int updatememberselective(Member member);

	int selectcountPachievements();

	PageParam<Personachievement> selectallPachievements(PageParam<Personachievement> pageParam);

	int deletePachieve(String id);

	int insertPachieve(Personachievement pa);

	int updatePachieve(Personachievement pa);

	int selectcountCachievements();

	PageParam<Classachievement> selectallCachievements(PageParam<Classachievement> pageParam);

	int deleteCachieve(String id);

	int insertCachieve(Classachievement ca);

	int updateCachieve(Classachievement ca);

	List<Classachievement> selectnewClassachieves();

	int updatepassword(CUser user);

	List<Classnews> selectNews();

	Classnews selectNewsByid(String newid);

	int selectNewsCount();

	PageParam<Classnews> selectallNewsBypage(PageParam<Classnews> pageParam);

	int insertNews(Classnews news);

	int deleteNews(String newid);

	List<Activity> selectActivitiesBypage();

	int selectActivityCount();

	PageParam<Activity> selectallActivityBypage(PageParam<Activity> pageParam);

	int deleteAcitvityByid(String id);

	int insertActivity(Activity ac);

	Activity selectActivity(String activityid);

	int insertHeartword(Heartwords word);

	List<HeartwordPage> selectPopularWords();

	int selectHeartWordsCount();

	PageParam<HeartwordPage> selectHeartwordsBypage(PageParam<HeartwordPage> pageParam,String userid);

	int updateHeartWordClicknums(String id);

	int insertComment(Comments com);

	int deleteComments(String commentid);

	int deleteWordAndComments(String heartwordid);

	String selectClicknumByid(String id);

	int updateClicknums(Admirerecord record);

	List<Admirerecord> selectRecordByheartid(String id);

	List<Member> selectallMembers();

	Member selectMemberInfoByid(String memberid);

	int selectRowCountBypersonname(String personname);

	PageParam<Personachievement> selectPByname(PageParam<Personachievement> pageParam, String personname);

	List<String> selectallPersonnames();

}
